package com.blue.mapper.workflow;

import com.blue.po.workflow.DefinitionPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;

/**
 * 流程定义表
 *
 * @author nanjie.chen
 * @email 15696471158@163.com
 * @date 2025-03-07
 */
@Mapper
public interface DefinitionMapper extends BaseMapper<DefinitionPO> {
    @Select("select max(version) from workflow_definition where wf_no = #{wfNo}")
    BigDecimal getMaxVersion(@Param("wfNo") String wfNo);
}
